package com.ruoyi.user.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户购物车对象 user_shopping_cart
 * 
 * @author ruoyi
 * @date 2025-10-21
 */
public class UserShoppingCart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 购物车记录ID */
    @Excel(name = "购物车记录ID")
    private String cartId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String customerId;

    /** 商家ID */
    @Excel(name = "商家ID")
    private String merchantId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private String productId;

    /** 套餐ID */
    @Excel(name = "套餐ID")
    private String comboId;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private String quantity;

    /** 单价快照 */
    @Excel(name = "单价快照")
    private BigDecimal unitPrice;

    /** 口味选项 */
    @Excel(name = "口味选项")
    private String tasteOptions;

    /** 口味加价总额 */
    @Excel(name = "口味加价总额")
    private BigDecimal tasteExtraPrice;

    /** 小计金额 */
    @Excel(name = "小计金额")
    private BigDecimal totalPrice;

    /** 是否选中 */
    @Excel(name = "是否选中")
    private Long selected;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 促销信息快照 */
    @Excel(name = "促销信息快照")
    private String promoInfo;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 删除时间（软删除） */
    @Excel(name = "删除时间", readConverterExp = "软=删除")
    private Date deletedAt;

    /** 预留字段1 */
    private String externField1;

    /** 预留字段2 */
    private String externField2;

    public void setCartId(String cartId) 
    {
        this.cartId = cartId;
    }

    public String getCartId() 
    {
        return cartId;
    }

    public void setCustomerId(String customerId) 
    {
        this.customerId = customerId;
    }

    public String getCustomerId() 
    {
        return customerId;
    }

    public void setMerchantId(String merchantId) 
    {
        this.merchantId = merchantId;
    }

    public String getMerchantId() 
    {
        return merchantId;
    }

    public void setProductId(String productId) 
    {
        this.productId = productId;
    }

    public String getProductId() 
    {
        return productId;
    }

    public void setComboId(String comboId) 
    {
        this.comboId = comboId;
    }

    public String getComboId() 
    {
        return comboId;
    }

    public void setQuantity(String quantity) 
    {
        this.quantity = quantity;
    }

    public String getQuantity() 
    {
        return quantity;
    }

    public void setUnitPrice(BigDecimal unitPrice) 
    {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getUnitPrice() 
    {
        return unitPrice;
    }

    public void setTasteOptions(String tasteOptions) 
    {
        this.tasteOptions = tasteOptions;
    }

    public String getTasteOptions() 
    {
        return tasteOptions;
    }

    public void setTasteExtraPrice(BigDecimal tasteExtraPrice) 
    {
        this.tasteExtraPrice = tasteExtraPrice;
    }

    public BigDecimal getTasteExtraPrice() 
    {
        return tasteExtraPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) 
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice() 
    {
        return totalPrice;
    }

    public void setSelected(Long selected) 
    {
        this.selected = selected;
    }

    public Long getSelected() 
    {
        return selected;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setPromoInfo(String promoInfo) 
    {
        this.promoInfo = promoInfo;
    }

    public String getPromoInfo() 
    {
        return promoInfo;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public void setDeletedAt(Date deletedAt) 
    {
        this.deletedAt = deletedAt;
    }

    public Date getDeletedAt() 
    {
        return deletedAt;
    }

    public void setExternField1(String externField1) 
    {
        this.externField1 = externField1;
    }

    public String getExternField1() 
    {
        return externField1;
    }

    public void setExternField2(String externField2) 
    {
        this.externField2 = externField2;
    }

    public String getExternField2() 
    {
        return externField2;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cartId", getCartId())
            .append("customerId", getCustomerId())
            .append("merchantId", getMerchantId())
            .append("productId", getProductId())
            .append("comboId", getComboId())
            .append("quantity", getQuantity())
            .append("unitPrice", getUnitPrice())
            .append("tasteOptions", getTasteOptions())
            .append("tasteExtraPrice", getTasteExtraPrice())
            .append("totalPrice", getTotalPrice())
            .append("selected", getSelected())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("promoInfo", getPromoInfo())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("deletedAt", getDeletedAt())
            .append("externField1", getExternField1())
            .append("externField2", getExternField2())
            .toString();
    }
}
